<template>
	<view class="tbPendingTips">
		<view class="main">
			<view class="title">
				{{ state === 'pending' ? '投币支付中' : '投币已完成' }}
			</view>
			<view class="content">
				<view class="img_box">
					<image
						style="
							width: 200rpx;
							height: 200rpx;
							padding: 40rpx;
							border-radius: 50%;
							background-color: #eeeeee;
						"
						mode="aspectFit"
						:src="imgUrl"></image>
				</view>
				<!-- <view
					class="footer"
					v-show="state === 'pending'"
					>{{ `正在为您找零：${9}` }}</view
				> -->
				<view
					class="footer"
					v-show="state === 'success'"
					>{{ `已投币$：${9} | 剩余$ ${1}` }}</view
				>
			</view>
		</view>
	</view>
</template>

<script>
export default {
	data() {
		return {
			state: 'pending',
			imgUrl: '/static/images/coining.png',
		};
	},
	mounted() {},
	methods: {
		jump(data) {
			let url = '';
			switch (data) {
				case 'service':
					url = '/pages/service/service';
					break;
				default:
			}
			uni.navigateTo({ url });
		},
		cancel() {},
		confirm() {},
	},
};
</script>

<style lang="scss" scoped>
.tbPendingTips {
	position: fixed;
	top: 0;
	left: 0;
	z-index: 99;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.5);
	display: flex;
	justify-content: center;
	align-items: center;
	.main {
		width: 400rpx;
		padding: 30rpx 60rpx;
		border: 2rpx solid $uni-color-green;
		border-radius: 10rpx;
		color: $uni-color-green;
		background-color: $uni-color-white;
		display: flex;
		flex-direction: column;
		justify-content: space-between;
		.title {
			width: 400rpx;
			height: 150rpx;
			text-align: center;
			line-height: 150rpx;
		}
		.content {
			width: 400rpx;
			min-height: 150rpx;
			text-align: center;
			line-height: 2;
			.footer {
				padding: 20rpx 0;
			}
		}
	}
}
</style>
